﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="MemberList.aspx.cs" Inherits="SBACN.WebSite.Admin.AboutGuild.MemberList" %>
<%@ Register Src="../../UC/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
	function Del_Btn(id) {
		if (confirm("确定要删除吗？")) {
			document.getElementById("<%= Hid_ID.ClientID%>").value = id;
			document.getElementById("<%= Click_btn.ClientID%>").click();
		}
	}

	function RefreshNewsList() {
		if (document.getElementById("<%= btn_NewsRefresh.ClientID%>")) {
			document.getElementById("<%= btn_NewsRefresh.ClientID%>").click();
		}
	}
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table-stroke2">
		<tr>
			<td width="15%" class="form-title2">
				 会员单位名称
			</td>
			<td width="15%" class="form-title2">
				会员单位英文名称
			</td>
			<td width="8%" class="form-title2">
				电话
			</td>
			<td width="15%" class="form-title2">
				地址
			</td>
			<td width="15%" class="form-title2">
				网站地址
			</td>
			<td width="8%" class="form-title2">
				联系人
			</td>
			<td width="8%" class="form-title2">
				操作
			</td>
		</tr>
		<asp:Repeater ID="MemeberList" runat="server">
			<ItemTemplate>
				<tr>
					<td class="formbodyleft">
						<%# Eval("Name") %>
					</td>
					<td class="form-body">
						<%# Eval("EnName")%>
					</td>
					<td class="form-body">
						<%# Eval("Telephone") %>
					</td>
					<td class="form-body">
						<%# Eval("Address") %>
					</td>
					<td class="form-body">
						<%# Eval("WebSite") %>
					</td>
					<td class="form-body">
						<%# Eval("ContractPersonName")%>
					</td>
					<td class="form-body">
						<a href="MemberEdit.aspx?mid=<%# Eval("ID") %>&st=<%= SystemType %>" target="_blank">编辑</a>
						&nbsp;&nbsp; 
						<a href="javascript:void(0)" onclick="Del_Btn(<%# Eval("ID") %>)">删除</a>
					</td>
				</tr>
			</ItemTemplate>
			<AlternatingItemTemplate>
				<tr>
					<td class="formbodyleft">
						<%# Eval("Name") %>
					</td>
					<td class="form-body">
						<%# Eval("EnName")%>
					</td>
					<td class="form-body">
						<%# Eval("Telephone") %>
					</td>
					<td class="form-body">
						<%# Eval("Address") %>
					</td>
					<td class="form-body">
						<%# Eval("WebSite") %>
					</td>
					<td class="form-body">
						<%# Eval("ContractPersonName")%>
					</td>
					<td class="form-body">
						<a href="MemberEdit.aspx?mid=<%# Eval("ID") %>&st=<%= SystemType %>" target="_blank">
							编辑</a> &nbsp;&nbsp; <a href="javascript:void(0)" onclick="Del_Btn(<%# Eval("ID") %>)">
								删除</a>
					</td>
				</tr>
			</AlternatingItemTemplate>
		</asp:Repeater>
		<tr>
			<td colspan="7" class="form-body">
				<a target="_blank" href="MemberEdit.aspx?st=<%= SystemType %>">新增</a>
			</td>
		</tr>
		<tr>
			<td colspan="7">
				<uc1:Pager ID="Pager1" runat="server" OnSelectedPageIndexChanged="BindSelectedPageIndexChanged"
					PageSize="15" />
			</td>
		</tr>
	</table>
	<div style="display:none;" >
		<asp:HiddenField runat="server" ID="Hid_ID" />
		<asp:Button runat="server" ID="Click_btn" Text="删除" OnClick="Del_Click" />
		<asp:Button Text="刷新" ID="btn_NewsRefresh" runat="server" OnClick="btn_NewsRefresh_Click" />
	</div>
</asp:Content>

